package com.suning.app.snpaasadmin.pojo;

import java.io.Serializable;

public class CfClusterConfig implements Serializable {
    private Long id;

    private Integer deployId;

    private String component;

    private Integer count;

    private Boolean cpuOverload;

    private Integer cpuCore;

    private String memorySize;

    private String netId;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getDeployId() {
        return deployId;
    }

    public void setDeployId(Integer deployId) {
        this.deployId = deployId;
    }

    public String getComponent() {
        return component;
    }

    public void setComponent(String component) {
        this.component = component == null ? null : component.trim();
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Boolean getCpuOverload() {
        return cpuOverload;
    }

    public void setCpuOverload(Boolean cpuOverload) {
        this.cpuOverload = cpuOverload;
    }

    public Integer getCpuCore() {
        return cpuCore;
    }

    public void setCpuCore(Integer cpuCore) {
        this.cpuCore = cpuCore;
    }

    public String getMemorySize() {
        return memorySize;
    }

    public void setMemorySize(String memorySize) {
        this.memorySize = memorySize == null ? null : memorySize.trim();
    }

    public String getNetId() {
        return netId;
    }

    public void setNetId(String netId) {
        this.netId = netId == null ? null : netId.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CfClusterConfig other = (CfClusterConfig) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDeployId() == null ? other.getDeployId() == null : this.getDeployId().equals(other.getDeployId()))
            && (this.getComponent() == null ? other.getComponent() == null : this.getComponent().equals(other.getComponent()))
            && (this.getCount() == null ? other.getCount() == null : this.getCount().equals(other.getCount()))
            && (this.getCpuOverload() == null ? other.getCpuOverload() == null : this.getCpuOverload().equals(other.getCpuOverload()))
            && (this.getCpuCore() == null ? other.getCpuCore() == null : this.getCpuCore().equals(other.getCpuCore()))
            && (this.getMemorySize() == null ? other.getMemorySize() == null : this.getMemorySize().equals(other.getMemorySize()))
            && (this.getNetId() == null ? other.getNetId() == null : this.getNetId().equals(other.getNetId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDeployId() == null) ? 0 : getDeployId().hashCode());
        result = prime * result + ((getComponent() == null) ? 0 : getComponent().hashCode());
        result = prime * result + ((getCount() == null) ? 0 : getCount().hashCode());
        result = prime * result + ((getCpuOverload() == null) ? 0 : getCpuOverload().hashCode());
        result = prime * result + ((getCpuCore() == null) ? 0 : getCpuCore().hashCode());
        result = prime * result + ((getMemorySize() == null) ? 0 : getMemorySize().hashCode());
        result = prime * result + ((getNetId() == null) ? 0 : getNetId().hashCode());
        return result;
    }
}